 |
API Documentation
|
|
|
141 virtual void setSize (
int width,
int height) ;
193 virtual void setLabel (
const std::string_view& label) ;
virtual void updateWindow()
void setRatio(float widthOverHeight)
nkMaths::Point getPositionInScreen() const
virtual void importClassFromTree(nkExport::Node *rootNode) override
ContextMenu * getCurrentContextMenu()
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
virtual void setPositionInParent(nkMaths::Point position)
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
virtual void setVisibility(bool value)
Layout * getLayout() const
void removeChild(unsigned int index)
Represents a layout to organize sub-windows in a window.
Definition: Layout.h:12
virtual const char * getLabel() const
nkMaths::Point getCoordRelativeFromAbsolute(const nkMaths::Point &absCoords)
nkMaths::Point getCoordAbsoluteFromRelative(const nkMaths::Point &relCoords)
virtual void setLabel(const std::string_view &label)
virtual void setHeight(int height)
void setMaxSize(unsigned int width, unsigned int height)
unsigned int getZDepth() const
virtual int getLayoutAllowedWidth() const
virtual Layout * setLayout(LAYOUT_TYPE layoutType)
Base class for any graphical component.
Definition: Component.h:12
nkMaths::Rectangle getArea() const
void unloadWithChildren()
void setComponentName(const std::string_view &name)
virtual void setArea(nkMaths::Rectangle area)
void setEnabled(bool value)
bool isInitialized() const
void setVisibleOnLoad(bool value)
virtual void exportClassToTree(nkExport::Node *rootNode) override
virtual void setParentComponent(Component *parent, bool makeItVisible=true)
Component * getParentComponent() const
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
virtual nkMaths::Point getBorderExtents() const
COMPONENT_TYPE getComponentType() const
virtual void setPositionInScreen(nkMaths::Point position)
Represents a 2D Point.
Definition: Point.h:12
Component * getChild(unsigned int index)
virtual int getLayoutAllowedHeight() const
void setMinSize(unsigned int width, unsigned int height)
virtual void setSize(int width, int height)
virtual int getLayoutAllowedOffsetX() const
bool isForegroundWindow() const
bool getVisibility() const
virtual void exportIntrospection(nkExport::Node *rootNode)
ContextMenu * createContextMenu()
const char * getComponentName() const
Represents a 2D rectangle.
Definition: Rectangle.h:12
nkMaths::Point getPositionInParent() const
void removeChild(Component *child)
bool getVisibleOnLoad() const
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
virtual int getLayoutAllowedOffsetY() const
void addChild(Component *child, bool makeItVisible=true)
virtual void setWidth(int width)
unsigned int getChildIndex(Component *child)